<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <thead>
  <tr>
  	<th colspan="2">Admin Dashboard</th>
  </tr>
  </thead>
  <tr>
    <td width="50%">Blogmer Live News</td>
    <td>Admin Functions</td>
  </tr>
  <tr>
    <td valign="top">
    			<?php 
				//code reference
				//http://smashscripts.blogspot.com/2007/06/php-read-contents-of-text-file.html
				/*$sReturn = '';
				$fHandle = fopen("http://speedovation.org/blogmer_news.txt", "r");
				while (!feof($fHandle))
				$sReturn .= fread($fHandle, 4096);
				fclose($fHandle);
				echo($sReturn);*/
				$t="";
				$t= file_get_contents("http://speedovation.org/blogmer_news.txt"); 
				if(empty($t))
					echo "No live news available.<br>Network error. Common issue <br> 1. You're testing it on localhost and internet is down.<br> 2. Your firewall is blocking site.";
					
				echo $t;	
				
				?>
                
    
    </td>
    <td valign="top"><div >
       	  <ul style="width:150px;">
             <li><?=anchor('admin/PostBlog','Create New Blog');?></li>
             <li><?=anchor('admin/PostPage','Create New Page');?></li>
             <li><?=anchor('admin/CreateCategory','Create New Category');?></li>   
              <li><?=anchor('admin/AddUser','Create User');?></li>      
          </ul>
        </div>
        
        <div >
          <ul style="width:150px;">
             <li><?=anchor('admin/ListBlogs','List Blogs');?></li>
             <li><?=anchor('admin/ListPages','List Pages');?></li>
             <li><?=anchor('admin/ListUsers','List Users');?></li>
             <li><?=anchor('admin/ListComments','List Comments');?></li>
             <li><?=anchor('admin/ManageCategories','List Categories');?></li>
         </ul>
        </div>
        
        <div >
            <ul style="width:150px;">
                 <li><?=anchor('admin/GeneralSettings','General Settings');?></li>
                 <li><?=anchor('admin/AdvancedSettings','Advanced Settings');?></li>
                 <li><?=anchor('admin/Themes','Themes');?></li>
          </ul>
        </div>
       
        
        <div >
            <ul style="width:150px;">
                 <li><?=anchor('admin/Logout','Logout');?></li>
                 
          </ul>
        </div>
        &nbsp;</td>
  </tr>
</table>
